package com.learning.rpc_service;

import com.learning.rpc_service.server.NettyService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author yangcun
 */
@SpringBootApplication(scanBasePackages = {"com.learning.rpc_service.*"})
public class RpcServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(RpcServiceApplication.class, args);
        try {
            NettyService.initService();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
